achievement_post_score


语法:

achievement_post_score(name, score)

参数 描述
name The name of the score table (or "Leaderboard").
score The score to be sent.


返回:

N/A(无返回值)


描述

You can use this function to send your score to the chosen leaderboard and achievement service. You send the name of the score table (the "leaderboard" name that you assigned to your game when you set up the account) and the actual score value).


例如:

if achievement_available() achievement_post_score("Leaderboard", 1000);

The above code checks to see if the chosen leaderboard and achievement service is available and if so it posts a score to the score table called "Leaderboard".